@import "../_base/_function";
.input-checkbox {
    display: inline-block;
    margin-right: 5px;
    position: relative;
    width: 20px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    .new-input {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 0;
        background: url(./assets/images/spr-l-0626.png) -124px -129px  no-repeat;
    }
    .icon-square {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 0;
    }
    input {
        position: relative;
        z-index: 1;
        opacity: 0;
        filter: alpha(opacity=0);
        &:checked {
            & + .new-input {
                background-position: -162px -127px;
            }
            & + .icon-square {
                color: $primary-color;
                &:before {
                    content: '\e6d4';
                }
            }
        }
    }
    &.checked {
        .new-input {
            background-position:-162px -127px;
        }
        .icon-square {
            color: $primary-color;
            &:before {
                content: '\e6d4';
            }
        }
    }
}